package com.mobilous.client.MainScreen;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.StackPanel;

public class People extends Composite {

	public People() {
		AbsolutePanel absolutePanel = new AbsolutePanel();
		
		initWidget(absolutePanel);
		absolutePanel.setSize("1024px", "722px");
		
		StackPanel stackPanel = new StackPanel();
		absolutePanel.add(stackPanel, 0, 10);
		stackPanel.setSize("931px", "708px");
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		stackPanel.add(absolutePanel_1, "Testers", false);
		absolutePanel_1.setSize("922px", "100%");
		
		AbsolutePanel absolutePanel_2 = new AbsolutePanel();
		stackPanel.add(absolutePanel_2, "Designers", false);
		absolutePanel_2.setSize("100%", "100%");
		
		AbsolutePanel absolutePanel_3 = new AbsolutePanel();
		stackPanel.add(absolutePanel_3, "Developers", false);
		absolutePanel_3.setSize("100%", "100%");
		
		AbsolutePanel absolutePanel_4 = new AbsolutePanel();
		stackPanel.add(absolutePanel_4, "Family", false);
		absolutePanel_4.setSize("100%", "100%");
		
		IconFile addGroup = new IconFile("images/addgroup.png", "Add Group");
		absolutePanel.add(addGroup, 937, 10);
		
		IconFile invite = new IconFile("images/invite.png", "Invite");
		absolutePanel.add(invite, 937, 105);
		
		IconFile thrashicon = new IconFile("images/recycle_bin.png", "Thrash");
		absolutePanel.add(thrashicon, 937, 642);
		
		
		addGroup.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				AddGroupDialog dialog = new AddGroupDialog();
				dialog.setAnimationEnabled(true);
				dialog.center();
				dialog.show();
			}
		});
		
		invite.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				InvitePeople dialog = new InvitePeople();
				dialog.setAnimationEnabled(true);
				dialog.center();
				dialog.show();
			}
		});
		}
}
